#include "stdafx.h"
#include "TestClass.h"
#include <iostream>

using namespace std;

int main()
{
	TestClass test1;
	TestClass test2;

	test1.Run( 1 );
	test2.Run( 2 );

	// Wait for both threads to exit
	while (test1.IsThreadActive() || test2.IsThreadActive())
		::Sleep( 1000 );

	cout << "Finished!" << endl;
	cin.get();

	return 0;
}